@extends('admin.layout')

@section('content')
<div class="content-wrapper" style="min-height: 916px;">
        <!-- Content Header (Page header) -->
   <div id="breadcrumbs" class="breadcrumbs">
    <ol class="breadcrumb">
    <li><a href="javascript:void();"><i class="fa fa-home"></i>&nbsp;&nbsp;后台首页</a></li>
            
            <li><a href="javascript:void();">文章管理</a></li>  
            <li><a href="javascript:void();">编辑文章</a></li>   
            <li><a href="javascript:void();"></a></li>          
    </ol>
</div>


<div class="col-md-12" style="">
      
      <div class="box box-info" style="">
                <div class="box-header with-border">
                  <h3 class="box-title">发布文章</h3>
                  <a data-original-title="返回" class="btn btn-default pull-right" title="" data-toggle="tooltip" href="{{url('/admin/title/titleList')}}"><i class="fa fa-reply"></i></a>
                </div>
                <form method="post" id="add_post" action="{{ url('/admin/title/titleList') }}" class="form-horizontal" style="">
                  <div class="box-body" style="">
                    <div class="form-group">
                      <label class="col-sm-2 control-label" for="inputEmail3">文章标题</label>
                      <div class="col-sm-8">
                        <input type="text" name="article_title" value="{{ old('article_title') }}" class="form-control">
                      </div>
                    </div>
                   <div class="form-group">
                      <label class="col-sm-2 control-label" for="inputEmail3">文章类别</label>
                      <div class="col-sm-2">
                          <select id="cat_id" name="article_cate" value="{{ old('article_cate') }}" class="small form-control">
                            <option value="0">选择分类</option>
                  
                          </select>
                      </div>
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label" for="text">banner图</label>                    
                      <div class="col-sm-8"><input type="text" value="{{ old('article_img') }}" name="article_img" id="imagetext"><input type="button" value="上传图片" onclick="GetUploadify(1,'imagetext','article','')" class="button"></div>
                   
                    </div>
                    
                    </div>
                    <div class="form-group">
                      <label class="col-sm-2 control-label" for="text">发布时间</label>
                      <div class="col-sm-8">
                            <div class="input-prepend input-group">
                                    <span class="add-on input-group-addon">
                                            <i class="glyphicon glyphicon-calendar fa fa-calendar">
                                            </i>
                                    </span>
                                <input type="text" value="{{ old('article_time') }}" name="article_time" id="publish_time" class="form-control">                                            
                            </div>                        
                      </div>
                 
                    
                    </div>    
                    <div class="form-group">
                      <label class="control-label col-sm-2">网页描述</label>
                      <div class="col-sm-8">
                <textarea title="" name="article_descrip"  value="{{ old('article_descrip') }}" id="post_description" class="form-control"></textarea>
                      </div>
                      </div>                        
                    <div class="form-group" style="">
                      <label class="control-label col-sm-2">文章内容</label>
                      <div class="col-sm-8" style="">


                       <!-- 加载编辑器的容器 -->
                    <script id="container" name="content" type="text/plain">
                 
                    </script>
                    <!-- 配置文件 -->
                    <script type="text/javascript" src="{{ url('/ue/ueditor.config.js')}}"></script>
                    <!-- 编辑器源码文件 -->
                    <script type="text/javascript" src="{{ url('/ue/ueditor.all.js')}}"></script>
                    <!-- 实例化编辑器 -->
                    <script type="text/javascript">
                        var ue = UE.getEditor('container');
                    </script>

                      </div>
                      </div>
                    <div class="form-group">
                      <label class="control-label col-sm-2">              
                        <input type="hidden" value="add" name="act">
                        <input type="hidden" value="" name="article_id"></label>
                       <div class="col-sm-8">
                        <button class="btn btn-default" type="reset">重置</button>
                          <button class="btn btn-info pull-right" onclick="checkForm()" type="button">提交</button>
                       </div>
                    </div>
                  </div>
                  <div class="box-footer row">

                  </div>
                <input type="hidden" value="de9ee2471b2841e79c3beb5bc6685a0d_fb4e4178cab1d8eb077e5fc46a0fad86" name="__hash__"></form>
              </div>
            </div>


@endsection